import Vue from 'vue'
import Router from 'vue-router'

import HelloWorld from '@/components/HelloWorld'
import GoodsList from '@/views/GoodsList'
import Cart from '@/views/Cart'
import Address from '@/views/Address'
import OrderConfirm from '@/views/OrderConfirm'
import OrderSuccess from '@/views/OrderSuccess'

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/HelloWorld',
      name: 'HelloWorld',
      component: HelloWorld
    },
    // 商品列表展示
    {
        path: '/GoodsList',
      name: 'GoodsList',
      component: GoodsList
    },
    // 购物车列表展示
    {
      path: '/Cart',
      name: 'Cart',
      component: Cart
    },
    // 结算列表展示
    {
      path: '/Address',
      name: 'Address',
      component: Address
    },
    // 订单确认页面
    {
      path: '/OrderConfirm',
      name: 'OrderConfirm',
      component: OrderConfirm
    },
    // 订单成功页面
    {
      path: '/OrderSuccess',
      name: 'OrderSuccess',
      component: OrderSuccess
    }
  ]
})
